home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmFour
- BackColor = &H8000000B&
- BorderStyle = 1 'Fixed Single
- Caption = "Xceed Recovery Wizard"
- ClientHeight = 4290
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7425
- Icon = "frmFour.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4290
- ScaleWidth = 7425
- Begin VB.CommandButton cmdTemp
- Caption = "Restore"
- Enabled = 0 'False
- Height = 375
- Left = 4560
- TabIndex = 10
- Top = 3720
- Width = 1215
- End
- Begin VB.CheckBox chkPreserveTree
- Caption = "Recreate subfolder tree"
- Enabled = 0 'False
- Height = 255
- Left = 2160
- TabIndex = 4
- Top = 2040
- Width = 2295
- End
- Begin VB.CommandButton cmdBrowseAltLocation
- Caption = "..."
- Enabled = 0 'False
- Height = 255
- Left = 6840
- TabIndex = 3
- Top = 1680
- Width = 375
- End
- Begin VB.OptionButton optAltTree
- BackColor = &H8000000B&
- Caption = "Alternate location"
- Height = 195
- Left = 1920
- TabIndex = 1
- Top = 1440
- Width = 3015
- End
- Begin VB.OptionButton optOriginalLocation
- Caption = "Original Location"
- Height = 195
- Left = 1920
- TabIndex = 0
- Top = 960
- Width = 2655
- End
- Begin VB.TextBox txtAltTree
- BackColor = &H8000000B&
- Enabled = 0 'False
- Height = 285
- Left = 2160
- TabIndex = 2
- Top = 1680
- Width = 4575
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 6000
- TabIndex = 8
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdNext
- Caption = "Next >"
- Height = 375
- Left = 3120
- TabIndex = 5
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdPrev
- Caption = "< Previous"
- Height = 375
- Left = 1920
- TabIndex = 6
- Top = 3720
- Width = 1215
- End
- Begin VB.Line Line1
- BorderColor = &H80000011&
- Index = 0
- X1 = 1680
- X2 = 1680
- Y1 = 120
- Y2 = 4080
- End
- Begin VB.Line Line1
- BorderColor = &H80000009&
- Index = 1
- X1 = 1695
- X2 = 1695
- Y1 = 120
- Y2 = 4080
- End
- Begin VB.Label Label3
- Caption = "Step 3 of 4"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 11
- Top = 3840
- Width = 1095
- End
- Begin VB.Image Image1
- Height = 1260
- Left = 120
- Picture = "frmFour.frx":0BC2
- Top = 120
- Width = 1410
- End
- Begin VB.Label Label2
- Caption = "Where do you want to restore your files to?"
- Height = 255
- Left = 1920
- TabIndex = 9
- Top = 360
- Width = 3375
- End
- Begin VB.Label Label1
- Caption = "Restore folder selection"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1920
- TabIndex = 7
- Top = 120
- Width = 2535
- End
- Attribute VB_Name = "frmFour"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim xClass As clsXceed
- Dim ExitInc As Integer
- Public Function ShowForm(xObjects As clsXceed) As Integer
- 'This is where you will fill in the fields on your forms with the values
- 'in xObjects.
- If xObjects.xRestore.RedirectToFolder = "" Then
- optOriginalLocation.Value = True
- Else
- optAltTree.Value = True
- txtAltTree.Text = xObjects.xRestore.RedirectToFolder
- End If
- If xObjects.xRestore.PreservePaths Then
- chkPreserveTree.Value = vbChecked
- Else
- chkPreserveTree.Value = vbUnchecked
- End If
- Call RefreshLocation
- Set xClass = xObjects
- Me.Left = xClass.PositionLeft
- Me.Top = xClass.PositionTop
- Me.Show vbModal
- xClass.PositionLeft = Me.Left
- xClass.PositionTop = Me.Top
- 'At this point, the form is now hidden and ExitInc contains the increment.
- 'If ExitInc is not 0 then set xobjects to the field values.
- If ExitInc <> 0 Then
- If optOriginalLocation.Value Then
- xObjects.xRestore.RedirectToFolder = ""
- Else
- optAltTree.Value = True
- xObjects.xRestore.RedirectToFolder = txtAltTree.Text
- End If
-
- If chkPreserveTree.Value = vbChecked Then
- xObjects.xRestore.PreservePaths = True
- Else
- xObjects.xRestore.PreservePaths = False
- End If
- End If
- Set xClass = Nothing
- ShowForm = ExitInc
- End Function
- Private Sub cmdBrowseAltLocation_Click()
- Dim sFolder As String
- Dim bFolderSelected As Boolean
- bFolderSelected = BrowseForFolder(sFolder, "", Me.hwnd)
-
- If bFolderSelected Then
- txtAltTree.Text = sFolder
- End If
-
- End Sub
- Private Sub cmdCancel_Click()
- Dim Answer As VbMsgBoxResult
- Answer = MsgBox("Your backups have not yet been restored. Cancel anyway?", vbYesNo + vbQuestion)
- If Answer = vbYes Then
- ExitInc = 0
- Me.Hide
- End If
-
- End Sub
- Private Sub cmdNext_Click()
- ExitInc = 1
- Me.Hide
- End Sub
- Private Sub cmdPrev_Click()
- ExitInc = -1
- Me.Hide
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- If UnloadMode <> vbFormCode Then
- Cancel = True
- Call cmdCancel_Click
- End If
- End Sub
- Private Sub optAltTree_Click()
- Call RefreshLocation
- End Sub
- Private Sub optOriginalLocation_Click()
- Call RefreshLocation
- End Sub
- Private Sub RefreshLocation()
- If optAltTree.Value Then
- txtAltTree.Enabled = True
- txtAltTree.BackColor = &H80000005
- cmdBrowseAltLocation.Enabled = True
- chkPreserveTree.Enabled = True
- Else
- txtAltTree.Enabled = False
- txtAltTree.BackColor = &H8000000B
- cmdBrowseAltLocation.Enabled = False
- chkPreserveTree.Enabled = False
- End If
- End Sub
-